import request from '@/utils/request'

// 查询会诊申请列表
export function listConsultationApply(query) {
  return request({
    url: '/workstation/consultationApply/list',
    method: 'get',
    params: query
  })
}

// 查询会诊申请详细
export function getConsultationApply(id) {
  return request({
    url: '/workstation/consultationApply/' + id,
    method: 'get'
  })
}

// 新增会诊申请
export function addConsultationApply(data) {
  return request({
    url: '/workstation/consultationApply',
    method: 'post',
    data: data
  })
}

// 修改会诊申请
export function updateConsultationApply(data) {
  return request({
    url: '/workstation/consultationApply',
    method: 'put',
    data: data
  })
}

// 删除会诊申请
export function delConsultationApply(id) {
  return request({
    url: '/workstation/consultationApply/' + id,
    method: 'delete'
  })
}
